<include file="public@header" />
<style>
	.visua_div{ white-space: nowrap;}
	.visua_child{position:relative;display: inline-block;width:250px; height:90px; border-radius:5px; margin:3px;text-align: center;cursor: pointer}
	.visua_child span{margin: 0;color: #fff;line-height: 70px;}
	.child {border:#fff 1px solid;width: 230px;height: 70px;margin: 10px}
	.bg_hui{background-color:#006fc4;}
</style>
</head>
<body>
	<php>$type=''</php>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Rock/product')}">石材产品库</a></li>
			<li class="active"><a href="{:url('Rock/producttypeadd')}">新增石材产品</a></li>
		</ul>
		<div class="visua_div" style="top:140px;position: relative;left: 20%">
			<a class="addPro" id="1">
				<div class="visua_child bg_hui" style="left:13%;">
					<div class="child">
						<span>新增商品墓</span>
					</div>
				</div>
			</a>
			<!--<a class="addPro" id="2">
				<div class="visua_child bg_hui" style="left:10%;">
					<div class="child">
						<span>新增艺术墓（定制）</span>
					</div>
				</div>
			</a>-->
		</div>
		<div class="visua_div" style="top:250px;position: relative;left: 20%">
			<a class="addPro" id="3">
				<div class="visua_child bg_hui">
					<div class="child">
						<span>新增生态墓</span>
					</div>
				</div>
			</a>
			<a class="addPro" id="4">
				<div class="visua_child bg_hui" style="left:10%;">
					<div class="child">
						<span>新增节地墓</span>
					</div>
				</div>
			</a>
		</div>

	</div>
    <script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
	<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
	<script>
		$(document).ready(function(){
			$(document).on("click",".addPro",function() {
				var protype = $(this).attr("id");
				var url = "";
				if(protype == 1){
					// 商品墓
					url = '{:url("Admin/Rock/productsp")}';
				}else if(protype == 2){
					// 艺术墓
					url = '{:url("Admin/Rock/productysmb")}';
				}else if(protype == 3){
					// 生态墓
					url = '{:url("Admin/Rock/productst")}';
				}else{
					// 节地墓
					url = '{:url("Admin/Rock/productjd")}';
				}
				console.log(url)
				$(this).attr("href",url);
			})
		})
	</script>
